﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace ConfigCenter.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ConfigsController : ControllerBase
    {
        public List<KeyValuePair<string,string>> Get()
        {
            var configs = new List<KeyValuePair<string, string>>();
            configs.Add(new KeyValuePair<string, string>("SecretKey","1238918290381923"));
            configs.Add(new KeyValuePair<string, string>("ConnectionString", "user=123;password=123;server=."));

            return configs;
        }
    }
}